import request from '@/utils/request'

// 查询办证申请列表
export function listSubmitcertificate(query) {
  return request({
    url: '/certificate/submitcertificate/list',
    method: 'get',
    params: query
  })
}

// 查询办证申请详细
export function getSubmitcertificate(id) {
  return request({
    url: '/certificate/submitcertificate/' + id,
    method: 'get'
  })
}

// 新增办证申请
export function addSubmitcertificate(data) {
  return request({
    url: '/certificate/submitcertificate',
    method: 'post',
    data: data
  })
}

// 修改办证申请
export function updateSubmitcertificate(data) {
  return request({
    url: '/certificate/submitcertificate',
    method: 'put',
    data: data
  })
}

// 删除办证申请
export function delSubmitcertificate(id) {
  return request({
    url: '/certificate/submitcertificate/' + id,
    method: 'delete'
  })
}


// 删除办证申请
export function getCertApplication(certApplicationId) {
  return request({
    url: '/certificate/submitcertificate/getCertApplication/' + certApplicationId,
    method: 'get'
  })
}

// 培训机构提交办证申请表
export function peixunjigousubmittezhongCertApplication(certApplicationId) {
  return request({
    url: '/certificate/submitcertificate/peixunjigousubmitCertApplication/' + certApplicationId,
    method: 'get'
  })
}